package cn.tedu.smartos.notice.mapper;


import cn.tedu.smartos.notice.pojo.entity.SystemNotice;
import cn.tedu.smartos.volunteer.pojo.entity.VolunteerSchedule;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface NoticeMapper {
    List<Long> selectUserRegionIds(@Param("userId") Long userId);
    List<SystemNotice> selectSystemNotices(@Param("regionIds") List<Long> regionIds);
    boolean isNoticeRead(@Param("userId") Long userId, @Param("noticeId") Long noticeId);
    List<VolunteerSchedule> selectVolunteerSchedules(@Param("volunteerId") Long volunteerId);
    int insertMessageNotification(@Param("userId") Long userId, @Param("noticeId") Long noticeId);
}